Feat/delete s3 sqs policies#59
Merged
Merged
Conversation
Implements the two missing privileged root-user actions: - S3UnlockBucketPolicy: list buckets and delete bucket policy - SQSUnlockQueuePolicy: list queues and delete queue policy Both operations use AssumeRoot. The CLI adds `delete s3-bucket-policy` and `delete sqs-queue-policy` subcommands with a single-select TUI when --account or --bucket/--queue flags are omitted. The multi-select selector is extended to support a single mode to avoid duplicating UI logic. Errors are logged via slog and exit non-zero without polluting the output table. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Moved --accounts from a persistent flag on the delete parent command to a local flag on each traditional subcommand (all/login/keys/mfa/ certificates). This prevents s3-bucket-policy and sqs-queue-policy from inheriting a flag they don't use, eliminating the confusion in their --help output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Before deleting an S3 bucket policy or SQS queue policy, fetch and display the current policy via AssumeRoot. If no policy exists, exit cleanly. Otherwise show a yes/no confirmation TUI before proceeding. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… table mode Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.